package com.yjd.comm.user.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.system.dto.OperParamDto;
import com.yjd.comm.user.model.CommerceModel;

/**
 * <b>description</b>：商会信息业务接口<br>
 * <b>time</b>：2014-12-17 13:20:12 <br>
 * <b>author</b>：  ready likun_557@163.com
 */
public interface ICommerceService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public CommerceModel insert(CommerceModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(CommerceModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id_commerce
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id_commerce) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(CommerceModel model, OperParamDto operParamDto) throws Exception;
	
	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id_commerce
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id, OperParamDto operParamDto) throws Exception;
	
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public CommerceModel insert(CommerceModel model, OperParamDto operParamDto) throws Exception;

}
